package com.zzedu.dto;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Map;

/**
 * 作业本信息对象 zz_exercise_book
 * 
 * @author Mr.Wang
 * @date 2025-06-02
 */
public class ZzExerciseBookDTO implements Serializable
{
    private static final long serialVersionUID = 1L;
    /** id */

    private Long id;
    /** 班级ID */
    private Long clazzId;
    /** 绘本ID */
    private Long pictureBookId;
    /** 节点ID */
    private Long nodeId;
    /** 题目id */
    private Long contentId;
    /** 学生id */
    private Long studentId;
    /** 提交次数 */
    private Long submitCount;
    /** 批改状态 0-待批改 1-已完成(针对选择题直接写已完成) */
    private Integer correctState;
    /** 题目得分[扩展,后期考试使用] */
    private BigDecimal examScore;
    /** 最新提交内容 */
    private Long submitId;
    /** 批改人 */
    private Long correctTeacherId;
    /** 添加时间 */

    private LocalDateTime gmtCreate;
    /** 更新时间 */

    private LocalDateTime gmtModify;
    /** 逻辑删除(0：未删除 1：id) */
    private Integer deleted;
    /** 创建人 */
    private Long createBy;
    /** 修改人 */
    private Long updateBy;
    private Map<String, Object> params;
    /**
     * 当前记录起始索引
     */
    private Long pageNum = 1l;

    /**
     * 每页显示记录数
     */
    private Long pageSize = 20l;

    /**
     * 排序列
     */
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    private String isAsc = "asc";

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClazzId(Long clazzId) 
    {
        this.clazzId = clazzId;
    }

    public Long getClazzId() 
    {
        return clazzId;
    }
    public void setPictureBookId(Long pictureBookId) 
    {
        this.pictureBookId = pictureBookId;
    }

    public Long getPictureBookId() 
    {
        return pictureBookId;
    }
    public void setNodeId(Long nodeId) 
    {
        this.nodeId = nodeId;
    }

    public Long getNodeId() 
    {
        return nodeId;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setSubmitCount(Long submitCount) 
    {
        this.submitCount = submitCount;
    }

    public Long getSubmitCount() 
    {
        return submitCount;
    }
    public void setCorrectState(Integer correctState) 
    {
        this.correctState = correctState;
    }

    public Integer getCorrectState() 
    {
        return correctState;
    }
    public void setExamScore(BigDecimal examScore) 
    {
        this.examScore = examScore;
    }

    public BigDecimal getExamScore() 
    {
        return examScore;
    }
    public void setSubmitId(Long submitId) 
    {
        this.submitId = submitId;
    }

    public Long getSubmitId() 
    {
        return submitId;
    }
    public void setCorrectTeacherId(Long correctTeacherId) 
    {
        this.correctTeacherId = correctTeacherId;
    }

    public Long getCorrectTeacherId() 
    {
        return correctTeacherId;
    }
    public void setGmtCreate(LocalDateTime gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(LocalDateTime gmtModify) 
    {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify() 
    {
        return gmtModify;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setCreateBy(Long createBy) 
    {
        this.createBy = createBy;
    }

    public Long getCreateBy() 
    {
        return createBy;
    }
    public void setUpdateBy(Long updateBy) 
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy() 
    {
        return updateBy;
    }


    public Long getPageNum() {
        return pageNum;
    }

    public void setPageNum(Long pageNum) {
        this.pageNum = pageNum;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }

    public String getOrderByColumn() {
        return orderByColumn;
    }

    public void setOrderByColumn(String orderByColumn) {
        this.orderByColumn = orderByColumn;
    }

    public String getIsAsc() {
        return isAsc;
    }

    public void setIsAsc(String isAsc) {
        this.isAsc = isAsc;
    }

    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public IPage getPageDTO() {
        return PageDTO.of(getPageNum(), getPageSize());
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
